package com.cn.service.server.bc.Impl;


import com.cn.mapper.dao.db1.bc.ButtonDao;
import com.cn.service.server.bc.ButtonServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cn.bean.pojo.bc.Button;

import java.util.List;

@Service
public class ButtonServerImpl implements ButtonServer {
    private ButtonDao buttonDao;
    @Autowired(required=false)
    public ButtonServerImpl(ButtonDao buttonDao) {
        this.buttonDao = buttonDao;
    }

    @Override
    public List<Button> selectButtonList(String userName, int menuId) {
        return buttonDao.selectButtonList(userName,menuId);
    }
}
